package jmind.core.mq.kafka;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;

public class MyConsumer extends AbstractKafkaConsumer {

    public MyConsumer(String topicName, String groupName) {
        super(topicName, groupName);

    }

    @Override
    public void handleMessage(ConsumerRecords<String, String> records) throws Exception {
        System.err.println(records.isEmpty() + "--" + records);
        for (ConsumerRecord<String, String> record : records) {
            System.err.println(Thread.currentThread().getName() + "=" + record);
        }

    }

}
